home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news text
| default
| |
99%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 65 6e | 67 6e 65 77 73 31 2e 45 |Path: en|gnews1.E|
|00000010| 6e 67 2e 53 75 6e 2e 43 | 4f 4d 21 74 61 75 6d 65 |ng.Sun.C|OM!taume|
|00000020| 74 21 63 6c 61 6d 61 67 | 65 0a 46 72 6f 6d 3a 20 |t!clamag|e.From: |
|00000030| 52 75 73 73 65 6c 6c 20 | 4a 6f 68 6e 73 74 6f 6e |Russell |Johnston|
|00000040| 20 3c 72 6a 6f 68 6e 73 | 74 6f 40 65 64 67 65 2e | <rjohns|to@edge.|
|00000050| 6e 65 74 3e 0a 4e 65 77 | 73 67 72 6f 75 70 73 3a |net>.New|sgroups:|
|00000060| 20 63 6f 6d 70 2e 73 74 | 64 2e 63 2b 2b 0a 53 75 | comp.st|d.c++.Su|
|00000070| 62 6a 65 63 74 3a 20 52 | 65 3a 20 62 61 73 65 20 |bject: R|e: base |
|00000080| 63 6c 61 73 73 20 6f 70 | 65 72 61 74 6f 72 20 68 |class op|erator h|
|00000090| 69 64 69 6e 67 0a 44 61 | 74 65 3a 20 32 36 20 4a |iding.Da|te: 26 J|
|000000a0| 61 6e 20 31 39 39 36 20 | 30 30 3a 30 35 3a 33 33 |an 1996 |00:05:33|
|000000b0| 20 47 4d 54 0a 4f 72 67 | 61 6e 69 7a 61 74 69 6f | GMT.Org|anizatio|
|000000c0| 6e 3a 20 6d 61 69 6e 6c | 79 20 63 61 72 62 6f 6e |n: mainl|y carbon|
|000000d0| 2d 62 61 73 65 64 0a 41 | 70 70 72 6f 76 65 64 3a |-based.A|pproved:|
|000000e0| 20 63 6c 61 6d 61 67 65 | 40 65 6e 67 2e 73 75 6e | clamage|@eng.sun|
|000000f0| 2e 63 6f 6d 20 28 63 6f | 6d 70 2e 73 74 64 2e 63 |.com (co|mp.std.c|
|00000100| 2b 2b 29 0a 4d 65 73 73 | 61 67 65 2d 49 44 3a 20 |++).Mess|age-ID: |
|00000110| 3c 33 31 30 37 41 44 41 | 32 2e 32 44 35 46 32 44 |<3107ADA|2.2D5F2D|
|00000120| 33 40 65 64 67 65 2e 6e | 65 74 3e 0a 52 65 66 65 |3@edge.n|et>.Refe|
|00000130| 72 65 6e 63 65 73 3a 20 | 3c 30 31 42 41 45 38 42 |rences: |<01BAE8B|
|00000140| 30 2e 43 34 30 38 41 39 | 32 30 40 64 69 6e 6f 2e |0.C408A9|20@dino.|
|00000150| 69 6e 74 2e 63 6f 6d 3e | 20 3c 34 65 31 69 6e 35 |int.com>| <4e1in5|
|00000160| 24 35 65 6e 40 6e 65 77 | 73 30 32 2e 63 6f 6d 70 |$5en@new|s02.comp|
|00000170| 2e 70 67 65 2e 63 6f 6d | 3e 0a 4e 4e 54 50 2d 50 |.pge.com|>.NNTP-P|
|00000180| 6f 73 74 69 6e 67 2d 48 | 6f 73 74 3a 20 74 61 75 |osting-H|ost: tau|
|00000190| 6d 65 74 2e 65 6e 67 2e | 73 75 6e 2e 63 6f 6d 0a |met.eng.|sun.com.|
|000001a0| 4d 69 6d 65 2d 56 65 72 | 73 69 6f 6e 3a 20 31 2e |Mime-Ver|sion: 1.|
|000001b0| 30 0a 43 6f 6e 74 65 6e | 74 2d 54 79 70 65 3a 20 |0.Conten|t-Type: |
|000001c0| 74 65 78 74 2f 70 6c 61 | 69 6e 3b 20 63 68 61 72 |text/pla|in; char|
|000001d0| 73 65 74 3d 22 75 73 2d | 61 73 63 69 69 22 0a 43 |set="us-|ascii".C|
|000001e0| 6f 6e 74 65 6e 74 2d 54 | 72 61 6e 73 66 65 72 2d |ontent-T|ransfer-|
|000001f0| 45 6e 63 6f 64 69 6e 67 | 3a 20 37 62 69 74 0a 58 |Encoding|: 7bit.X|
|00000200| 2d 4e 6e 74 70 2d 50 6f | 73 74 69 6e 67 2d 48 6f |-Nntp-Po|sting-Ho|
|00000210| 73 74 3a 20 69 70 31 35 | 39 2e 6e 61 73 68 2e 65 |st: ip15|9.nash.e|
|00000220| 64 67 65 2e 6e 65 74 0a | 58 2d 4d 61 69 6c 65 72 |dge.net.|X-Mailer|
|00000230| 3a 20 4d 6f 7a 69 6c 6c | 61 20 32 2e 30 62 36 61 |: Mozill|a 2.0b6a|
|00000240| 20 28 58 31 31 3b 20 49 | 3b 20 4c 69 6e 75 78 20 | (X11; I|; Linux |
|00000250| 31 2e 33 2e 35 39 20 69 | 34 38 36 29 0a 54 6f 3a |1.3.59 i|486).To:|
|00000260| 20 50 68 69 6c 6c 69 70 | 20 4b 6e 69 67 68 74 20 | Phillip| Knight |
|00000270| 3c 70 73 6b 33 40 70 67 | 65 2e 63 6f 6d 3e 0a 58 |<psk3@pg|e.com>.X|
|00000280| 2d 4c 69 6e 65 73 3a 20 | 34 30 0a 43 6f 6e 74 65 |-Lines: |40.Conte|
|00000290| 6e 74 2d 4c 65 6e 67 74 | 68 3a 20 31 33 32 35 0a |nt-Lengt|h: 1325.|
|000002a0| 4f 72 69 67 69 6e 61 74 | 6f 72 3a 20 63 6c 61 6d |Originat|or: clam|
|000002b0| 61 67 65 40 74 61 75 6d | 65 74 0a 0a 50 68 69 6c |age@taum|et..Phil|
|000002c0| 6c 69 70 20 4b 6e 69 67 | 68 74 20 77 72 6f 74 65 |lip Knig|ht wrote|
|000002d0| 3a 0a 0a 3e 20 20 20 20 | 20 20 20 20 20 63 6c 61 |:..> | cla|
|000002e0| 73 73 20 6f 6c 6f 67 73 | 74 72 65 61 6d 20 3a 20 |ss ologs|tream : |
|000002f0| 70 75 62 6c 69 63 20 6f | 73 74 72 65 61 6d 20 7b |public o|stream {|
|00000300| 0a 3e 20 20 20 20 20 20 | 20 20 20 20 20 20 70 75 |.> | pu|
|00000310| 62 6c 69 63 3a 0a 09 5b | 20 2e 2e 2e 20 5d 0a 3e |blic:..[| ... ].>|
|00000320| 20 20 20 20 20 20 20 20 | 20 20 20 20 6f 6c 6f 67 | | olog|
|00000330| 73 74 72 65 61 6d 26 20 | 6f 70 65 72 61 74 6f 72 |stream& |operator|
|00000340| 3c 3c 20 28 66 6f 6f 20 | 26 62 61 72 29 0a 3e 20 |<< (foo |&bar).> |
|00000350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000360| 20 20 20 7b 20 72 65 74 | 75 72 6e 20 2a 74 68 69 | { ret|urn *thi|
|00000370| 73 3b 20 7d 20 20 2f 2f | 20 64 6f 20 6e 6f 74 68 |s; } //| do noth|
|00000380| 69 6e 67 0a 3e 20 20 20 | 20 20 20 20 20 20 7d 3b |ing.> | };|
|00000390| 0a 0a 5b 20 6d 61 69 6e | 28 29 20 74 68 65 6e 20 |..[ main|() then |
|000003a0| 61 74 74 65 6d 70 74 73 | 20 74 6f 20 75 73 65 20 |attempts| to use |
|000003b0| 6f 6c 6f 67 73 74 72 65 | 61 6d 3a 3a 6f 70 65 72 |ologstre|am::oper|
|000003c0| 61 74 6f 72 3c 3c 20 6f | 6e 20 63 68 61 72 2a 5d |ator<< o|n char*]|
|000003d0| 0a 0a 3e 20 6f 6e 20 62 | 79 20 6f 73 74 72 65 61 |..> on b|y ostrea|
|000003e0| 6d 2f 6f 6c 6f 67 73 74 | 72 65 61 6d 20 6f 70 65 |m/ologst|ream ope|
|000003f0| 72 61 74 6f 72 73 2e 20 | 20 54 68 65 20 70 72 65 |rators. | The pre|
|00000400| 73 65 6e 63 65 20 6f 66 | 20 61 6e 20 6f 70 65 72 |sence of| an oper|
|00000410| 61 74 6f 72 3c 3c 0a 3e | 20 28 6f 76 65 72 6c 6f |ator<<.>| (overlo|
|00000420| 61 64 65 64 20 6f 72 20 | 6f 74 68 65 72 77 69 73 |aded or |otherwis|
|00000430| 65 29 20 69 6e 20 74 68 | 65 20 64 65 72 76 69 64 |e) in th|e dervid|
|00000440| 65 64 20 63 6c 61 73 73 | 20 63 6f 6e 73 65 71 75 |ed class| consequ|
|00000450| 65 6e 74 6c 79 20 68 69 | 64 65 73 20 74 68 65 20 |ently hi|des the |
|00000460| 62 61 73 65 0a 3e 20 63 | 6c 61 73 73 20 6f 70 65 |base.> c|lass ope|
|00000470| 72 61 74 6f 72 73 20 77 | 68 69 63 68 20 61 72 65 |rators w|hich are|
|00000480| 20 70 75 62 6c 69 63 2e | 20 20 4d 79 20 71 75 65 | public.| My que|
|00000490| 73 74 69 6f 6e 20 69 73 | 3b 20 69 73 20 74 68 69 |stion is|; is thi|
|000004a0| 73 20 61 20 62 75 67 20 | 69 6e 20 74 68 65 0a 3e |s a bug |in the.>|
|000004b0| 20 6c 61 6e 67 75 61 67 | 65 20 5b 2e 2e 2e 5d 20 | languag|e [...] |
|000004c0| 3f 0a 0a 0a 49 20 62 65 | 6c 69 65 76 65 20 74 68 |?...I be|lieve th|
|000004d0| 69 73 20 69 73 20 74 68 | 65 20 65 78 70 65 63 74 |is is th|e expect|
|000004e0| 65 64 20 62 65 68 61 76 | 69 6f 72 20 66 6f 72 20 |ed behav|ior for |
|000004f0| 74 68 65 20 6c 61 6e 67 | 75 61 67 65 2e 0a 59 6f |the lang|uage..Yo|
|00000500| 75 20 63 61 6e 20 63 61 | 6c 6c 20 74 68 65 20 62 |u can ca|ll the b|
|00000510| 61 73 65 20 63 6c 61 73 | 73 20 76 65 72 73 69 6f |ase clas|s versio|
|00000520| 6e 20 77 69 74 68 3a 0a | 0a 20 20 6f 75 74 2e 6f |n with:.|. out.o|
|00000530| 73 74 72 65 61 6d 3a 3a | 6f 70 65 72 61 74 6f 72 |stream::|operator|
|00000540| 3c 3c 20 28 22 54 65 73 | 74 20 6f 6e 65 2e 22 29 |<< ("Tes|t one.")|
|00000550| 3b 0a 0a 4f 72 20 28 70 | 65 72 68 61 70 73 20 62 |;..Or (p|erhaps b|
|00000560| 65 74 74 65 72 20 64 65 | 70 65 6e 64 69 6e 67 20 |etter de|pending |
|00000570| 6f 6e 20 68 6f 77 20 22 | 6e 61 74 75 72 61 6c 22 |on how "|natural"|
|00000580| 20 79 6f 75 20 77 61 6e | 74 20 74 68 65 20 0a 63 | you wan|t the .c|
|00000590| 68 61 72 20 2a 20 76 65 | 72 73 69 6f 6e 20 74 6f |har * ve|rsion to|
|000005a0| 20 66 65 65 6c 29 20 67 | 69 76 65 20 6f 6c 6f 67 | feel) g|ive olog|
|000005b0| 73 74 72 65 61 6d 20 61 | 20 6d 65 6d 62 65 72 3a |stream a| member:|
|000005c0| 0a 0a 20 20 6f 6c 6f 67 | 73 74 72 65 61 6d 26 20 |.. olog|stream& |
|000005d0| 6f 70 65 72 61 74 6f 72 | 3c 3c 20 28 63 68 61 72 |operator|<< (char|
|000005e0| 20 2a 73 74 72 29 20 0a | 20 20 20 20 20 20 7b 20 | *str) .| { |
|000005f0| 6f 73 74 72 65 61 6d 3a | 3a 6f 70 65 72 61 74 6f |ostream:|:operato|
|00000600| 72 28 73 74 72 29 3b 20 | 72 65 74 75 72 6e 20 2a |r(str); |return *|
|00000610| 74 68 69 73 3b 20 7d 0a | 0a 46 72 6f 6d 20 74 68 |this; }.|.From th|
|00000620| 65 20 41 52 4d 20 28 53 | 65 63 74 69 6f 6e 20 31 |e ARM (S|ection 1|
|00000630| 33 2e 31 29 2c 20 6f 72 | 20 73 65 63 74 69 6f 6e |3.1), or| section|
|00000640| 20 31 33 2e 32 2e 31 20 | 69 6e 20 44 72 61 66 74 | 13.2.1 |in Draft|
|00000650| 20 53 74 61 6e 64 61 72 | 64 3a 0a 22 41 20 66 75 | Standar|d:."A fu|
|00000660| 6e 63 74 69 6f 6e 20 6d | 65 6d 62 65 72 20 6f 66 |nction m|ember of|
|00000670| 20 61 20 64 65 72 69 76 | 65 64 20 63 6c 61 73 73 | a deriv|ed class|
|00000680| 20 69 73 20 2a 6e 6f 74 | 2a 20 69 6e 20 74 68 65 | is *not|* in the|
|00000690| 20 73 61 6d 65 20 73 63 | 6f 70 65 20 0a 61 73 20 | same sc|ope .as |
|000006a0| 61 20 66 75 6e 63 74 69 | 6f 6e 20 6d 65 6d 62 65 |a functi|on membe|
|000006b0| 72 20 6f 66 20 74 68 65 | 20 73 61 6d 65 20 6e 61 |r of the| same na|
|000006c0| 6d 65 20 69 6e 20 61 20 | 62 61 73 65 20 63 6c 61 |me in a |base cla|
|000006d0| 73 73 2e 22 0a 0a 54 68 | 65 20 6e 65 78 74 20 70 |ss."..Th|e next p|
|000006e0| 61 67 65 20 5b 41 52 4d | 5d 20 67 69 76 65 73 20 |age [ARM|] gives |
|000006f0| 61 20 6a 75 73 74 69 66 | 69 63 61 74 69 6f 6e 20 |a justif|ication |
|00000700| 66 6f 72 20 74 68 69 73 | 20 64 65 63 69 73 69 6f |for this| decisio|
|00000710| 6e 2c 20 74 68 65 20 0a | 6a 69 73 74 20 6f 66 20 |n, the .|jist of |
|00000720| 77 68 69 63 68 20 69 73 | 20 74 68 61 74 20 69 6e |which is| that in|
|00000730| 20 61 20 63 68 61 69 6e | 20 6f 66 20 64 65 72 69 | a chain| of deri|
|00000740| 76 65 64 20 63 6c 61 73 | 73 65 73 2c 20 61 20 22 |ved clas|ses, a "|
|00000750| 62 65 73 74 20 6d 61 74 | 63 68 22 20 0a 6d 61 79 |best mat|ch" .may|
|00000760| 20 62 65 20 66 6f 75 6e | 64 20 64 65 65 70 20 69 | be foun|d deep i|
|00000770| 6e 20 74 68 65 20 62 61 | 73 65 20 63 6c 61 73 73 |n the ba|se class|
|00000780| 20 77 68 69 63 68 20 77 | 69 6c 6c 20 73 75 72 70 | which w|ill surp|
|00000790| 72 69 73 65 20 70 72 6f | 67 72 61 6d 6d 65 72 73 |rise pro|grammers|
|000007a0| 20 0a 75 73 69 6e 67 20 | 74 68 65 20 64 65 72 69 | .using |the deri|
|000007b0| 76 65 64 20 63 6c 61 73 | 73 2e 0a 0a 43 68 65 65 |ved clas|s...Chee|
|000007c0| 72 73 2c 0a 52 75 73 73 | 65 6c 6c 20 4a 6f 68 6e |rs,.Russ|ell John|
|000007d0| 73 74 6f 6e 0a 3c 72 6a | 6f 68 6e 73 74 6f 40 65 |ston.<rj|ohnsto@e|
|000007e0| 64 67 65 2e 6e 65 74 3e | 0a 0a 5b 20 63 6f 6d 70 |dge.net>|..[ comp|
|000007f0| 2e 73 74 64 2e 63 2b 2b | 20 69 73 20 6d 6f 64 65 |.std.c++| is mode|
|00000800| 72 61 74 65 64 2e 20 20 | 53 75 62 6d 69 73 73 69 |rated. |Submissi|
|00000810| 6f 6e 20 61 64 64 72 65 | 73 73 3a 20 73 74 64 2d |on addre|ss: std-|
|00000820| 63 2b 2b 40 6e 63 61 72 | 2e 75 63 61 72 2e 65 64 |c++@ncar|.ucar.ed|
|00000830| 75 2e 0a 20 20 43 6f 6e | 74 61 63 74 20 61 64 64 |u.. Con|tact add|
|00000840| 72 65 73 73 3a 20 73 74 | 64 2d 63 2b 2b 2d 72 65 |ress: st|d-c++-re|
|00000850| 71 75 65 73 74 40 6e 63 | 61 72 2e 75 63 61 72 2e |quest@nc|ar.ucar.|
|00000860| 65 64 75 2e 20 20 54 68 | 65 20 6d 6f 64 65 72 61 |edu. Th|e modera|
|00000870| 74 69 6f 6e 20 70 6f 6c | 69 63 79 0a 20 20 69 73 |tion pol|icy. is|
|00000880| 20 73 75 6d 6d 61 72 69 | 7a 65 64 20 69 6e 20 68 | summari|zed in h|
|00000890| 74 74 70 3a 2f 2f 64 6f | 67 62 65 72 74 2e 6c 62 |ttp://do|gbert.lb|
|000008a0| 6c 2e 67 6f 76 2f 7e 6d | 61 74 74 2f 73 74 64 2d |l.gov/~m|att/std-|
|000008b0| 63 2b 2b 2f 70 6f 6c 69 | 63 79 2e 68 74 6d 6c 2e |c++/poli|cy.html.|
|000008c0| 20 5d 0a 0a | | ].. | |
+--------+-------------------------+-------------------------+--------+--------+